home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre1.z / postgre1 / demo / script-20 < prev    next >
Encoding:
Text File  |  1992-08-27  |  152 b   |  6 lines

  1. define rule example_1 is
  2. on retrieve to emp.salary where current.name = "sam"
  3. do instead retrieve (salary = 2 * emp.salary) where emp.name = "bill"
  4.  
  5. \g
  6.